package cn.mesmile.workflow.process.wrapper;

import cn.mesmile.workflow.process.dto.WorkFlowNodeDTO;
import cn.mesmile.workflow.process.vo.WorkFlowNodeVO;
import cn.mesmile.workflow.support.BaseEntityWrapper;
import org.springframework.beans.BeanUtils;

/**
 * @author zb
 * @Description
 */
public class WorkFlowNodeWrapper extends BaseEntityWrapper<WorkFlowNodeDTO, WorkFlowNodeVO> {

    public static WorkFlowNodeWrapper build() {
        return new WorkFlowNodeWrapper();
    }

    @Override
    public WorkFlowNodeVO entityVO(WorkFlowNodeDTO entity) {
        WorkFlowNodeVO workFlowNodeVO = new WorkFlowNodeVO();
        if (entity != null) {
            BeanUtils.copyProperties(entity, workFlowNodeVO);
        }
        return workFlowNodeVO;
    }
}
